home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / usenet / sources / volume91 / devices / yes_1_0 / part01 / README < prev   
Text File  |  1991-05-08  |  2KB  |  53 lines

  1. This little gem is a YES: handler. So what's that, you ask?
  2.  
  3. Let's say you're unlharcing something and you want it to always create
  4. directories/tromp/etc. Then -- lharc <YES:y x archive will always say "y"
  5. when it asks "Create this Directory?".
  6.  
  7. This handler is a triumph of modern compiler technology, trite but true.
  8. Who could have even dreamed that a program written in "C" could be less
  9. than 1400 bytes, after all?
  10.  
  11. Total syntax:
  12.  
  13. Just plain YES: returns "yes\n" for each call to Read().
  14. YES:<text>  returns the text whenever the program reads from YES:.
  15.   The following are special-cased:
  16.     // -- one slash character
  17.     \\ -- one backslash character
  18.     \n -- a linefeed
  19.     \c -- a carriage return
  20.     \<octal> -- an octal character.
  21.  
  22. YES:<text>/c turns off the automatic "\n" ordinarily added to the text.
  23.  
  24. To use: Plunk YesHandler into your L: directory. Then put this into your
  25. Mountlist:
  26.  
  27. YES: Handler = L:YesHandler
  28.     StackSize = 2000
  29.     Priority = 0
  30.     GlobVec = -1
  31. #
  32.  
  33.  
  34. Next type "mount YES:" and presto, you're done.
  35.  
  36. Known bugs: None. However, note that YES:/c  will NOT generate
  37. the text "yes" without the carriage return... there has to be text between
  38. the colon and the "/c".
  39.  
  40. Permission granted for all uses, but please send bug reports to me:
  41.  
  42. Eric Lee Green
  43. P.O. Box 92191
  44. Lafayette, LA 70509
  45. (318) 984-1820
  46.  
  47. BIX: egreen
  48. Internet: elg@elgamy.RAIDERNET.COM (Eric's Amiga @ Home)
  49. UUCP: uunet!mjbtn!raider!elgamy!elg
  50.  
  51. NOTE: I am currently looking for a job as of 4/91. If you know of a company
  52. that's hiring Unix or Amiga software people, please drop me a line.
  53.